#define _CRT_SECURE_NO_WARNINGS

#include"priority_queue.h"

int main()
{
	bit::priority_queue<int> pq1;
	pq1.push(313);
	pq1.push(2);
	pq1.push(1);
	pq1.push(31);
	pq1.push(53);
	pq1.push(22);
	while (!pq1.empty())
	{
		cout << pq1.top() << ' ';
		pq1.pop();
	}
	cout << endl;
	cout << endl;
	cout << endl;

	bit::priority_queue<int, vector<int>, greater<int>> pq2;
	pq2.push(123);
	pq2.push(132);
	pq2.push(21);
	pq2.push(13);
	pq2.push(23);
	while (!pq2.empty())
	{
		cout << pq2.top() << ' ';
		pq2.pop();
	}

	cout << endl;
	cout << endl;
	cout << endl;
	vector<int> v1{ 2,13,5,1,57,134,1 };
	bit::priority_queue<int> pq3(v1.begin(), v1.end());
	while (!pq3.empty())
	{
		cout << pq3.top() << ' ';
		pq3.pop();
	}
	return 0;
}